<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>XCenter Administrator's Control Panel</title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head><body><!--*/-->
<!--{&header}-->
<!--{!#system,common}-->
<table summary="" id="pagehead" cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td><h1>{!permissions}</h1></td>
        <td class="actions">
            <table summary="" cellpadding="0" cellspacing="0" border="0" align="right">
                <tr>
                    <td class="active"><a href="#{system/resource}#">{!resource_title}</a></td>
                    <td><a href="#{system/role}#">{!role_title}</a></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<form method="post" action="#{/system/resource/update}#" enctype="multipart/form-data">
    <table cellspacing='2' cellpadding='2' class='helptable'>
        <tr>
            <td>
                {!help_resource}
            </td>
        </tr>
    </table>
    <table cellspacing='0' cellpadding='0' width='100%' class='listtable'>
        <tr>
            <th width="50">{!common_delete}</th>

            <th width="150">{!resource_pattern}</th>
            <th width="250">{!resource_decide}</th>
            <th>{!resource_role}</th>
            <th width="50">{!common_operation}</th>
        </tr>
        <!--{loop $resources $v}-->
        <tr>
            <td><input type='checkbox' name='delresource[]' value='${v_index}'></td>
            <td><input type='text' name='pattern[${v_index}]' value="${v[1]}"></td>
            <td>
                <input type="radio" name="decide[${v_index}]" value="affirmative" xtc="$v[0]=='affirmative'"/>{!resource_affirmative}
                <input type="radio" name="decide[${v_index}]" value="unanimous" xtc="$v[0]=='unanimous'"/>{!resource_unanimous}
                <input type="radio" name="decide[${v_index}]" value="consensus" xtc="$v[0]=='consensus'"/>{!resource_consensus}
            </td>
            <td><input type='hidden' name='role[${v_index}]' value="${v[2]}">
                ${v[3]}
            </td>
            <td><a href="#{system/resource/details?decide=${v[0]}&pattern=${v[1]}}#">{!common_details}</a></td>
        </tr>
        <!--{/loop}-->
        <tr>
            <td>{!common_new}</td>
            <td><input type='text' name='pattern[0]' value=''></td>
            <td>
                <input type="radio" name="decide[0]" value="affirmative" checked="checked"/>{!resource_affirmative}
                <input type="radio" name="decide[0]" value="unanimous"/>{!resource_unanimous}
                <input type="radio" name="decide[0]" value="consensus"/>{!resource_consensus}
            </td>
            <td><input type='hidden' name='role[0]' value='0'></td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" align="right">{!resource_allowIfAbstain}</td>
            <td>
                <input type="radio" name="abstain" value="1" xtc="$abstain===1"/>{!common_yes}
                <input type="radio" name="abstain" value="0" xtc="$abstain===0"/>{!common_no}
            </td>
        </tr>
        <table cellspacing="0" cellpadding="0" width="100%" class="btmtable">
            <tr>
                <th><input type="checkbox" name="chkall" onclick="checkall(this.form, 'delresource')">{!common_select_all}
                </th>
            </tr>
        </table>
    </table>
    <div class="buttons"><input type="submit" name="delcensorsubmit" value="{!common_submit}" class="submit"></div>
</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->